import React from 'react';

export default class Child2 extends React.Component{
  onChange = (e) => {
    this.props.onChange(e);
  }
  render(){
    return(
      <div>
        Child2
        <input type="text" value={ this.props.money }  onChange={ this.onChange } name="" id="" />
        人民币
      </div>
    )
  }
}